package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ResultCast {

    private int beginIndex;
    private int endIndex;
    private ResultCastFromType resultCastFromType;

    public ResultCast(int beginIndex, ResultCastFromType resultCastFromType) {
        this.beginIndex = beginIndex;
        this.endIndex = resultCastFromType.getEndIndex();
        this.resultCastFromType = resultCastFromType;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public ResultCastFromType getResultCastFromType() {
        return resultCastFromType;
    }

}
